<template>
	<div>
	<el-input v-model="deptVal" @input="selDeptHandelInput"  placeholder="请填写组织编码"   maxlength="20" >
	</el-input>
	</div>
</template>

<script>
	export default {
		name: "SelDeptPanel",
		props:{
			value:String,
		},
		data(){
			return{
				deptVal:this.value
			}
		},
		watch:{
			value(val){
				this.deptVal=val
			}
		},
		methods:{
			selDeptHandelInput(val){
				// this.deptVal = e.target.value 
				this.$emit('input', val)
			}
		}
	}
</script>

<style>
</style>
